package com.maktoub.common.service;


import com.maktoub.common.model.baseresponse.CheckOkMes;
import com.maktoub.common.model.entity.User;

import javax.servlet.http.HttpServletRequest;


/**
 * 用户服务
 *
 * @author yupi
 */
public interface RemoteUserService {

    /**
     * 鉴权，利用签名和ak，sk
     * @param accessKey
     * @param timestamp
     * @param random
     * @param body
     * @param sign
     * @return
     */
    CheckOkMes checkMes(String accessKey,
                        String timestamp,
                        String random,
                        String body,
                        String sign);

    User getLoginUser(HttpServletRequest request);
}
